package com.txw.travel.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.txw.travel.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

     List<Integer> getRoleIdByAdminId(Integer id);

     void deleteRolePermissionByRoleId(Integer rid);

     void addRolePermission(@Param("rid") Integer rid,@Param("pid") Integer pid);
}
